import request from "@/api/request"

// 请求首页数据

function listaction(data){
    return request({
        url:"/index/index",
        method:"get",
        data
    })
}

function detailaction(data){
    return request({
        url:"/brand/detailaction",
        method:"get",
        data
    })
}

function headList(data){
    return request({
        url:"/brand/listaction",
        method:"get",
        data
    })


}
function goodsList(data){
    return request({
        url:"/goods/goodsList",
        method:"get",
        data
    })


}

function goodsinfo(data){
    return request({
        url:"/goods/detailaction",
        method:"get",
        data
    })


}
function topiclist(data){
    return request({
        url:"/topic/detailaction",
        method:"get",
        data
    })
    


}
function indexaction(data){
    return request({
        url:"/search/indexaction",
        method:"get",
        data
    })


}
function helperaction(data){
    return request({
        url:"/search/helperaction",
        method:"get",
        data
    })


}
function addhistoryaction(data){
    return request({
        url:"/search/addhistoryaction",
        method:"post",
        data
    })


}
export {
    listaction , detailaction ,headList, goodsList ,goodsinfo , topiclist ,indexaction ,helperaction ,addhistoryaction
}